package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerDriverInfoMapper;
import com.ruoyi.passenger.domain.TbPassengerDriverInfo;
import com.ruoyi.passenger.service.ITbPassengerDriverInfoService;

/**
 * 司机信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class TbPassengerDriverInfoServiceImpl implements ITbPassengerDriverInfoService 
{
    @Autowired
    private TbPassengerDriverInfoMapper tbPassengerDriverInfoMapper;

    /**
     * 查询司机信息
     * 
     * @param driverId 司机信息主键
     * @return 司机信息
     */
    @Override
    public TbPassengerDriverInfo selectTbPassengerDriverInfoByDriverId(Long driverId)
    {
        return tbPassengerDriverInfoMapper.selectTbPassengerDriverInfoByDriverId(driverId);
    }

    /**
     * 查询司机信息列表
     * 
     * @param tbPassengerDriverInfo 司机信息
     * @return 司机信息
     */
    @Override
    public List<TbPassengerDriverInfo> selectTbPassengerDriverInfoList(TbPassengerDriverInfo tbPassengerDriverInfo)
    {
        return tbPassengerDriverInfoMapper.selectTbPassengerDriverInfoList(tbPassengerDriverInfo);
    }

    /**
     * 新增司机信息
     * 
     * @param tbPassengerDriverInfo 司机信息
     * @return 结果
     */
    @Override
    public int insertTbPassengerDriverInfo(TbPassengerDriverInfo tbPassengerDriverInfo)
    {
        return tbPassengerDriverInfoMapper.insertTbPassengerDriverInfo(tbPassengerDriverInfo);
    }

    /**
     * 修改司机信息
     * 
     * @param tbPassengerDriverInfo 司机信息
     * @return 结果
     */
    @Override
    public int updateTbPassengerDriverInfo(TbPassengerDriverInfo tbPassengerDriverInfo)
    {
        return tbPassengerDriverInfoMapper.updateTbPassengerDriverInfo(tbPassengerDriverInfo);
    }

    /**
     * 批量删除司机信息
     * 
     * @param driverIds 需要删除的司机信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerDriverInfoByDriverIds(Long[] driverIds)
    {
        return tbPassengerDriverInfoMapper.deleteTbPassengerDriverInfoByDriverIds(driverIds);
    }

    /**
     * 删除司机信息信息
     * 
     * @param driverId 司机信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerDriverInfoByDriverId(Long driverId)
    {
        return tbPassengerDriverInfoMapper.deleteTbPassengerDriverInfoByDriverId(driverId);
    }




}
